import request from "../../utils/request"
export function courseList(params: any) {
    return request({
        method: "get",
        url: `/tienchin/course/list`,
        params
    })
}
export function courseSearch(params: any) {
    return request({
        method: "get",
        url: `/tienchin/course/list`,
        params
    })
}
export function courseAdd(data: any) {
    return request({
        method: "post",
        url: "/tienchin/course",
        data
    })
}
export function courseEdit(data: any) {
    return request({
        method: "put",
        url: "/tienchin/course",
        data
    })
}
export function courseDel(id: any) {
    return request({
        method: "delete",
        url: `/tienchin/course/` + id,
    })
}
export function courseEdits(id: any) {
    return request({
        method: "get",
        url: `/tienchin/course/` + id,
    })
}
export function courseOut(data: any) {
    return request({
        method: "post",
        url: "/tienchin/course/export",
        data,
        // 设置服务器返回的数据类型是个二进制文件对象（blob）
        responseType: "blob"
    })
}